banner.admin.templates = {};

banner.admin.templates [ "group_list_start" ] =
	'<table><tr><th>ID</th><th>Nome</th><th>Abilitato</th><th>Scadenza</th><th>Azioni</th></tr>';

banner.admin.templates [ "group_list_end" ] = '</table>';

banner.admin.templates [ "group_list_row" ] =
	'<tr><td>%(id)s</td><td>%(name)s</td><td>%(enabled)s</td><td>%(expiration)s</td>' +
	'<td><a href="javascript:banner.admin.group_edit(\'%(_dest)s\',%(id)s)">Modifica</a> - ' +
	'<a href="javascript:banner.admin.group_del(%(id)s)">Elimina</a></td></tr>';


banner.admin.templates [ "cont_list_start" ] =
	'<table><tr><th>ID</th><th>Nome</th><th>Frequenza</th><th>Larghezza</th><th>Altezza</th><th>Azioni</th></tr>';

banner.admin.templates [ "cont_list_end" ] = '</table>';

banner.admin.templates [ "cont_list_row" ] =
	'<tr><td>%(id)s</td><td>%(name)s</td><td>%(issue_rate)s</td><td>%(width)s</td><td>%(height)s</td>' +
	'<td><a href="javascript:banner.admin.cont_edit(\'%(_dest)s\',%(id)s)">Modifica</a> - ' +
	'<a href="javascript:banner.admin.cont_del(%(id)s)">Elimina</a></td></tr>';


banner.admin.templates [ "banner_list_start" ] =
	'<table><tr><th>ID</th><th>Immagine</th><th>Frequenza</th><th>Popup?</th><th>URL</th><th>Azioni</th></tr>';

banner.admin.templates [ "banner_list_end" ] = '</table>';

banner.admin.templates [ "banner_list_row" ] =
	'<tr><td>%(id)s</td><td>%(_img)s</td><td>%(issue_rate)s</td><td>%(popup)s</td><td>%(url_click)s</td>' +
	'<td><a href="javascript:banner.admin.banner_edit(\'%(_dest)s\',%(id)s)">Modifica</a> - ' +
	'<a href="javascript:banner.admin.banner_del(%(id)s)">Elimina</a></td></tr>';

banner.admin.templates [ 'env_start' ]  = '<div id="banner-single">';
banner.admin.templates [ 'tabs_start' ] = '<div class="os3tabs"><div class="os3tabs_header" id="banner-tabs_header"></div><div class="os3tabs_body" id="banner-tabs_body">';
banner.admin.templates [ 'tabs_tab' ]   = '<div class="tab" id="%(tab_name)s"></div>';
banner.admin.templates [ 'tabs_end' ]   = '</div></div>';
banner.admin.templates [ 'env_end' ]    = '</div>';
